package com.project.bean;

import java.util.List;

public class ManBean {
    private int id;
    private String name;
    private String tel;
    //该公民拥有的汽车数量
    private int carNum;
    //公民拥有的汽车集合
    private List<CarBean> carList;

    public ManBean() {
    }

    public ManBean(String name, String tel) {
        this.name = name;
        this.tel = tel;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getCarNum() {
        return carNum;
    }

    public void setCarNum(int carNum) {
        this.carNum = carNum;
    }

    public List<CarBean> getCarList() {
        return carList;
    }

    public void setCarList(List<CarBean> carList) {
        this.carList = carList;
    }

    @Override
    public String toString() {
        return "ManBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", carNum=" + carNum +
                ", carList=" + carList +
                '}'+"\n";
    }
}
